﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>北京爱玛信管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/comm.js"></script>
<script type="text/jscript">
 
	function checksubmit() {
        TrimAllitems();
	    var form=document.forms[0];
	    if (form.user.value == "") {
	        alert("请输入账号！");
            form.user.focus();
            return false;
        }
        if (form.pwd.value == "") {
            alert("请输入密码！");
            form.pwd.focus();
            return false;
        }
        return true;
    }
    
    function onload()
    {
        try
        {
            //document.getElementById("availHeight").value = window.screen.availHeight;
            //document.getElementById("availWidth").value = window.screen.availWidth;
            document.getElementById("availWidth").value = document.body.clientWidth;
            document.getElementById("availHeight").value = document.body.clientHeight;           
        }
        catch(e)
        {
        }
    }
    function resett() 
    {
        document.getElementById("user").value = "";
        document.getElementById("pwd").value = "";
        document.getElementById("remember").checked = false;
     }
</script>
</head>
<body onload="onload()">
   

<div class="LOGIN">
 <form id="form1" runat="server">
        	<ul class="LOGIN_2">
            	<li class="LOGIN_af">账号：<input id="user" name="user" type="text" size="20"   maxlength="20"  value="" runat="server" class="loginad"/></li>
                <li class="LOGIN_ad">密码：<input id="pwd" name="pwd"  maxlength="20" type="password" size="20" value="" runat="server"  class="loginad"/></li>
                <li class="LOGIN_as"><input type="checkbox" name="checkbox" id="remember" runat="server" /><a href="#">记住密码</a></li>
                <li class="LOGIN_aa"><asp:Button id="btnLogin" type="button" class="logi_1" Text="" runat="server" OnClientClick="return checksubmit()" OnClick="btnLogin_Click"/><input id="" type="button" class="logi_2" value="" onclick="resett()"/></li>
            </ul>
            <asp:HiddenField runat="server" ID="availWidth" />
            <asp:HiddenField runat="server" ID="availHeight" />
    </form>
</div>
    
  

</body>
</html>